@filelist_even_row_color:#f9f9f9;
@filelist_default_text_color:#666666;
@filelist_selection_background:#fb725c;
@filelist_selection_color:@white;
@filelist_detailed_hover_background:#f7f7f7;
@filelist_tablerow_hover_background:rgb(253, 252, 228);

@filelist_detailed_font_big:15px;
@filelist_detailed_font_small:11px;
@filelist_fetched_font_big:13px;

@filelist_tablerow_font_big:12px;
@filelist_tablerow_font_small:10px;

@filelist_thumbnail_background: #fafafa;
@filelist_thumbnail_label_background:rgba(237, 237, 237, 0.82);
@filelist_thumbnail_label_color:#666;
@thumbnail_mimefont_color: #546E7A;

@filelist_paginator_background:#FFFCE8;

@filelist_resizer_label_selected_bg:rgb(231, 231, 231);
@filelist_resizer_label_color:rgba(0, 0, 0, 0.87);
@filelist_resizer_label_size:11px;




.class-FilesList{


  .sort-table {
    font-size: @filelist_tablerow_font_small;
    color:rgba(0,0,0,0.53);
    td {
      padding: 8px 0;
      border: 0;
    }
    tr{
    }
    tr:nth-child(even){
      background-color: @filelist_even_row_color;
    }
    .no-flexbox & td{
      padding: 3px 0;
    }
    #last_header{
      border-right: 0 solid #ddd;
      width: auto !important;
    }
    tr h3 {
      padding: 5px 10px 10px;
      font-size: 1.8em;
      margin: 10px 0 -7px;
      border-bottom: 1px solid #999;
    }
  }

  .text_label{
    display:block;
    overflow:hidden;
    padding-left: 6px;
    padding-top: 4px;
    height: 18px;
    line-height: 17px;
    white-space : nowrap;
    text-overflow: ellipsis;
    .full{
      height: auto;
      white-space: normal;
    }
  }

  span.overlay-class-span{
    color: @filelist_default_text_color;
    margin-left: 5px;
    padding: 0 !important;
    margin-top: 0 !important;
  }
  .overlay_icon_div{
    position: absolute;
    background: none !important;
    height: 12px !important;
    bottom: 0 !important;
    width: auto !important;
    top: 9px !important;
    right: 10px !important;
    font-size: 11px;
    span.overlay-class-span{
      margin-left: 10px;
    }
  }
  .selected span.overlay-class-span{
    color: @filelist_selection_color;
  }

  .thumbnail_selectable_cell{
    width: 110px;
    height: 100px;
    float: left;
    text-align: center;
    margin: 4px;
    -moz-border-radius : 2px;
    border-radius: 2px;
    padding: 4px 6px;
    color: @filelist_default_text_color;
    div.thumbnail_cell_metadata span.metadata_chunk span.text_label{
      margin-left: 0;
      display:inline;
    }
    div.thumbnail_cell_metadata span.metadata_chunk{
      display: inline;
      margin-right: 5px;
    }
    .mimefont {
      color: @thumbnail_mimefont_color;
      line-height: 38px;
    }
    &.selected-focus .mimefont{
      color: @filelist_selection_color;
    }
    .thumbLabel
    {
      /*overflow: hidden;*/
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }
    > div > div.overlay_icon_div{
      top: 27px !important;
      right: 21px !important;
      font-size: 16px;
      transition: top 0.6s ease;
    }

    &.detailed {
      margin: 0 0 !important;
      margin-bottom: 2px;
      width: 100%;
      display: block;
      height: auto;
      position: relative;
      border-radius: 0;
      padding: 7px 4px;
      border-bottom: 1px solid rgba(0,0,0,0.03);
      div.thumbnail_selectable_cell{
        margin-right: 11px;
        background-color: transparent;
      }
      div.thumbLabel{
        font-size: @filelist_detailed_font_big;
        text-align: left;
        padding-top: 9px;
        padding-bottom: 0;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
      }
      div.thumbnail_cell_metadata{
        text-align: left;
        padding-top: 1px;
        font-size: @filelist_detailed_font_small;
        white-space: nowrap;
        margin-top: 1px;
        opacity: 0.5;
      }
      &.selected-focus{
        div.thumbLabel{
          font-weight: 500;
        }
        div.thumbnail_cell_metadata{
          opacity: 0.8;
        }
      }

      &:hover{
        background-color: @filelist_detailed_hover_background;
      }
      &:last-child{
        border-bottom: 0;
      }
      &.metadata_empty div.thumbLabel{
        padding-top:18px;
      }

    }
  }

  &.paginated div.scroller_track{
    top: 30px;
  }

  &.fl-displayMode-list{

    &.fl-showFilterPane div.scroller_track {
      top: 50px !important;
    }
    div.scroller_track {
      top: 26px;
    }
    &.paginated div.scroller_track {
      top: 56px;
    }

    .table_rows_container{

      span.list_selectable_span span.text_label{
        font-size: @filelist_tablerow_font_big;
        /*padding-left: 27px !important;*/
        background-position: 5px 4px;
        color: @filelist_default_text_color;
        .mimefont{
          display: inline-block;
          float: left;
          margin: 0 5px 0 2px;
          font-size: 17px;
          color: @thumbnail_mimefont_color;
        }
      }
      .selected-focus span.list_selectable_span span.text_label .mimefont {
        color: @filelist_selection_color;
      }
      span#ajxp_label {
        font-weight: normal;
        background-size: 16px;
      }
      tr:hover,
      tr.even:hover
      {
        background-color: @filelist_tablerow_hover_background;
      }
      span#ajxp_label{
        font-family: @fontBold;
      }
    }


  }

  &.fl-displayMode-thumb {

    div.thumbnail_selectable_cell{
      margin: 1px;
      background-color: @filelist_thumbnail_background;
      border-radius: 0px;
      padding: 0 0 3px;
      background-size: cover;
      background-position: center;
      box-sizing: border-box;
      position: relative;
      div.thumbLabel{
        text-align: left;
        position: relative;
        opacity: 1;
        background-color: rgba(0, 0, 0, 0.45);
        padding: 12px 16px;
        color: #ffffff;
        font-weight: 500;
        position: absolute;
        bottom: 0;
        right: 0;
        left: 0;
      }

      div.overlay_icon_div{
        top: 14px !important;
        right: 17px !important;
        span.overlay-class-span{
          color: white !important;
          font-size: 14px;
        }
      }

      &.fl-displayMode-thumbsize-medium div.thumbLabel{
        padding: 6px 8px;
        margin-top: -15px;
        font-size: 0.8em;
        div.overlay_icon_div {
          top: 8px !important;
          right: 10px !important;
        }
      }

      &.fl-displayMode-thumbsize-large div.thumbLabel{
        font-size: 0.9em;
      }

      &.fl-displayMode-thumbsize-small div.thumbLabel{
        display: none;
      }

      &.selected-focus {
        border: 2px solid @filelist_selection_background;
        /*background-color: @filelist_thumbnail_background !important;*/
        div.overlay_icon_div{
          right: 15px !important;
        }
        &.fl-displayMode-thumbsize-small{
          background-color: @filelist_selection_background !important;
        }
        div.thumbLabel{
          padding: 12px 14px 10px 14px;
        }
        &.fl-displayMode-thumbsize-medium div.thumbLabel{
          padding: 6px 8px 4px 6px !important;
          div.overlay_icon_div {
            top: 8px !important;
            right: 8px !important;
          }
        }
        span.overlay-class-span{
          color: @filelist_selection_background;
        }
      }
    }

  }

  .list_selectable_span img {
    float: left;
  }

  .paginator{
    background-color: @filelist_paginator_background;
    border: 0;
    font-size: 12px;
    padding: 5px;
    text-align: center;
    .paginatorInput {
      width:21px;
      padding: 0 2px;
      height: 17px;
      text-align: right;
      border: 1px solid #CCCCCC;
      margin-right: 2px;
      margin-left: 5px;
    }
  }

  > div.panelHeader{
    display: none;
  }

  &.class-FetchedResultPane{

    div.overlay_icon_div {
      top: 16px!important;
      font-size: 13px;
    }


    div.thumbnail_selectable_cell.detailed{
      padding: 2px 12px;
      border-bottom: 0;
    }
  
    div.thumbnail_selectable_cell.detailed div.thumbnail_selectable_cell img{
      width: 16px !important;
      height: 16px !important;
      margin-top: 4px !important;
    }
  
    div.thumbnail_selectable_cell.detailed div.thumbnail_selectable_cell{
      margin: 0;
      padding: 1px 7px 6px 6px;
      height: 22px !important;
    }
  
    div.thumbnail_selectable_cell.detailed div.thumbnail_cell_metadata{
      display: none;
    }
  
    div.class-FetchedResultPane.display_metadata div.thumbnail_selectable_cell.detailed div.thumbnail_cell_metadata{
      display: inherit;
    }
  
  
    div.ajxpNodeProvider.selected-focus{
      background-color: @filelist_selection_color !important;
    }
  
    div.thumbnail_selectable_cell.detailed div.thumbLabel{
      font-size: @filelist_fetched_font_big;
      padding-top: 4px;
    }
  
    div.thumbnail_selectable_cell.detailed span.text_label{
      padding-top: 0;
    }


  }

  #no-results-found {
    text-align: center;
    margin-top: 10%;
  }

  div.header_resizer{
    overflow:hidden;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    opacity: 0.85;
    max-height: 26px;
    .column_resize_grabber {
      display:block;
      width: 3px;
      float:right;
      height: 23px;
      font-size: 0;
      cursor:e-resize;
    }
    div.header_cell{
      float:left;
      overflow:hidden;
      width:90px;
      white-space:nowrap;
      border: 0 !important;
      cursor: pointer;
      span.ajxp-order-icon {
        display: none;
        float: right;
        padding-top: 1px;
      }
      &.ascending span.icon-caret-up{
        display:inline-block;
      }
      &.descending span.icon-caret-down{
        display:inline-block;
      }
      &.ascending div.header_label, &.descending div.header_label{
        background-color: @filelist_resizer_label_selected_bg;
      }
      input[type="text"] {
        margin-left: 0;
        width: 96%;
        border: 0;
        background: transparent;
      }
    }
    &.sort-table-filter {
      display: none ;
      div.header_cell {
        border-right: 1px solid #ccc !important;
        box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.37);
        &:last-child {
          border-right: 0 !important;
        }
      }
    }
    div.header_label{
      font-size: @filelist_resizer_label_size;
      padding: 5px 5px 4px;
      background-color: @white;
      color: @filelist_resizer_label_color;
      border-bottom: 0;
      height: 18px;
      overflow: hidden;
    }
    div.resizer{
      float:left;
      width:1px;
      background-color: #ebedf0;
      height: 26px;
      cursor:e-resize;
      border: 0;
    }
    div.resizer_sortable{
      background-color: #fff;
    }
    div.dragging{
      background-color : #bbb;
      border-left: 1px solid #bbb;
    }
  }

  div.resizeGhost{
    width: 1px;
    border-right: 1px solid #ccc;
    position:absolute;
    z-index:1017;
    opacity:0.7;
  }

  &.fl-showFilterPane div.sort-table-filter {
    display: block;
  }

  /*******************************************/
  /* INLINE PROGRESS BAR INSIDE FILE LIST    */
  /*******************************************/
  .partSizeRender{
    display: inline-block;
    width: 80px;
    height: 20px;
    background-image: url('@{imagePath}dl_bg.png');
    background-repeat: no-repeat;
    background-size: 0 100%;
    font-size: 14px;
    border: 1px solid rgba(0, 0, 0, 0.09);
    color: rgba(0,0,0,0.87);
  }

  .pg_cancel_button{
    background-color: #C33;
    display: inline-block;
    border-radius: 20px;
    -moz-border-radius: 20px;
    -webkit-border-radius: 20px;
    cursor: pointer;
    float: right;
    margin-right: 8px;
    font-weight: bold;
    color: white !important;
    height: 12px;
    width: 8px;
    padding-left: 4px;
    line-height: 13px;
    font-size: 7px;
    margin-top: 2px;
  }


}
